package xyz.labmem.base.sys.module.auth.controller.request

import io.swagger.annotations.ApiModelProperty
import xyz.labmem.base.core.base.BaseVerify
import javax.validation.constraints.NotBlank
import javax.validation.constraints.Size

/**
 * @Author lty
 * @Date 2021/12/15 17:04
 */
class AuthResetPwdRequest {

    @ApiModelProperty(value = "旧密码")
    @NotBlank(message = "请输入旧密码", groups = [BaseVerify.update::class])
    @Size(min = 6, max = 18, message = "密码长度在6-18位", groups = [BaseVerify.update::class])
    var password: String? = null

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "请输入新密码", groups = [BaseVerify.update::class])
    @Size(min = 6, max = 18, message = "密码长度在6-18位", groups = [BaseVerify.update::class])
    var newPassword: String? = null

}

class AuthResetPwd {
    @ApiModelProperty(value = "密码")
    @NotBlank(message = "请输入密码", groups = [BaseVerify.update::class])
    @Size(min = 6, max = 18, message = "密码长度在6-18位", groups = [BaseVerify.update::class])
    var password: String? = null

    @ApiModelProperty(value = "用户id")
    @NotBlank(message = "请输入用户id", groups = [BaseVerify.update::class])
    var id: String? = null

}